import Router from 'koa-router';
import  task  from '../../controller/v1/taskMan'

const router = new Router()
// task
router.get('/list', task.getTaskList )
router.get('/search', task.searchTaskFromText )
router.get('/:taskId', task.taskDetail )
router.post('/create', task.createTask )
router.delete('/:taskId', task.deleteTask )
router.patch('/:taskId', task.updateTask )

export default router;